<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<!-- Head -->
<head>
    <meta charset="utf-8"/>
    <title>${session.SOFT_NAME }_智能办公系统</title>
    <meta name="description" content="Dashboard"/>
    <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <%include("/app/resapi/style.html"){} %>
    <link rel="stylesheet" href="/module/zTree_v3/css/bootstrapStyle/bootstrapStyle.css" type="text/css">
</head>
<body style="overflow-y:auto;">
<div class="page-body" style="padding:0px;">
    <div class="main-container container-fluid">
        <div class="page-container">
            <div class="col-md-12 col-sm-12 col-xs-12" style="padding:0px">

                <div class="col-md-2 col-sm-2 col-xs-12" style="padding: 0px;">
                    <div class="widget flat radius-bordered">
                        <div class="widget-header bg-lightred">
                            <span class="widget-caption">院系列表</span>
                        </div>
                        <div class="widget-body">
                            <ul id="tree" class="ztree"></ul>
                            <a id="cbut" href="javascript:void(0);" class="btn btn-purple" style="width: 100%;">创建院系</a>
                        </div>

                    </div>
                </div>
                <div class="col-md-10 col-sm-10 col-xs-12">
                    <div class="row" style="padding:0px">
                        <div class="widget">
                            <div class="widget-header bordered-bottom bordered-palegreen">
                                <span class="widget-caption">院系基本信息</span>
                            </div>
                            <div class="widget-body">
                                <form class="form-horizontal form-bordered" id="form">
                                    <div class="form-group">
                                        <label class="col-sm-1 control-label no-padding-right">${i18n('system.sortNo')} ：</label>
                                        <div class="col-sm-2">
                                            <input type="text" class="form-control" id="sortNo" name="sortNo" placeholder="${i18n('system.sortNo')}">
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="col-sm-1 control-label no-padding-right">所有校区：</label>
                                        <div class="col-sm-5" style="position: relative;">
                                            <select id="campusId" name="campusId" class="form-control"></select>
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="col-sm-1 control-label no-padding-right">院系名称 ：</label>
                                        <div class="col-sm-5">
                                            <input type="text" class="form-control" id="departmentsName" name="departmentsName" placeholder="院系名称 ">
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="col-sm-1 control-label no-padding-right">上级院系：</label>
                                        <div class="col-sm-5" style="position: relative;">
                                            <input type="text" class="form-control" id="levelId" name="levelId" placeholder="请选择上级院系 " readonly="readonly">
                                            <div id="menuContent" class="menuContent">
                                                <ul id="menuTree" class="ztree"></ul>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="col-sm-1 control-label no-padding-right">开设专业 ：</label>
                                        <div class="col-sm-5">
                                            <textarea class="form-control" id="majors" name="majors" placeholder="开设专业" rows="4" readonly></textarea>
                                        </div>
                                        <div style="line-height: 90px">
                                            <a style="cursor: pointer;" opt-id="majors" onclick="selectMajor(this,'true');">${i18n('system.select')}</a>
                                            <a style="cursor: pointer;" onclick="clearSelect('majors')">${i18n('system.clear')}</a>
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="col-sm-1 control-label no-padding-right">院系领导 ：</label>
                                        <div class="col-sm-5">
                                            <input type="text" class="form-control" id="leadId" name="leadId" placeholder="院系领导" readonly="readonly" opt-id="leadId" onclick="selectUser(this,'false');">
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="col-sm-1 control-label no-padding-right">联系电话 ：</label>
                                        <div class="col-sm-5">
                                            <input type="text" class="form-control" id="tel" name="tel" placeholder="院系领导">
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="col-sm-1 control-label no-padding-right">备注 ：</label>
                                        <div class="col-sm-5">
                                            <textarea rows="5" cols="" class="form-control" id="remark" name="remark"></textarea>
                                        </div>
                                    </div>
                                    <div class="form-group" style="text-align: center;">
                                        <a id="createbut" href="javascript:void(0);" class="btn btn-primary">${i18n('system.create')}</a>
                                        <a style="display: none;" id="updatabut" href="javascript:void(0);" class="btn btn-maroon">更&nbsp;&nbsp;改</a>
                                        <a style="display: none;" id="delbut" href="javascript:void(0);" class="btn btn-danger shiny">删&nbsp;&nbsp;除</a>
                                    </div>
                                </form>
                            </div>
                        </div>
                    </div>


                </div>
            </div>
        </div>
    </div>
</div>
<%include("/app/resapi/sysjs.html"){} %>
<script type="text/javascript" src="/module/zTree_v3/js/jquery.ztree.core.js"></script>
<script type="text/javascript" src="/module/zTree_v3/js/jquery.ztree.excheck.js"></script>
<script type="text/javascript" src="/module/zTree_v3/js/jquery.ztree.exedit.js"></script>
<script type="text/javascript" src="/gobal/js/page/education/param/param.js"></script>
<script type="text/javascript" src="/gobal/js/page/education/param/departments.js"></script>
</body>
</html>
